<?php
namespace Osp\ProductBundle\Entity;
use Doctrine\ORM\Mapping as ORM; 

/** 
* @ORM\Entity 
* @ORM\Entity(repositoryClass="Osp\ProductBundle\Entity\ProductRepository")
*/
class Product
{ 
	/** 
	* @ORM\Id 
	* @ORM\Column(name="id", type="integer") 
	* @ORM\GeneratedValue(strategy="AUTO") 
	*/
	private $id;

    /** 
    * @ORM\Column(name="photo", type="string", length=100, nullable=true) 
    */ 
    private $photo;

    /** 
    * @ORM\ManyToOne(targetEntity="\Osp\CategoryBundle\Entity\Category") 
    * @ORM\JoinColumn(name="categorie", referencedColumnName="id", nullable=false, onDelete="CASCADE") 
    */ 
    protected $categorie;   

	/** 
	* @ORM\Column(name="libelle", type="string", length=50) 
	*/ 
	private $libelle;

	/** 
	* @ORM\Column(name="description", type="text") 
	*/ 
	private $description;

    /** 
    * @ORM\Column(name="lien", type="string", length=100, nullable=true) 
    */ 
    private $lien;

    /** 
    * @ORM\Column(name="poids", type="float") 
    */ 
    private $poids;

	/** 
	* @ORM\Column(name="prix", type="float") 
	*/  
	private $prix;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set photo
     *
     * @param string $photo
     * @return Product
     */
    public function setPhoto($photo)
    {
        $this->photo = $photo;
    
        return $this;
    }

    /**
     * Get photo
     *
     * @return string 
     */
    public function getPhoto()
    {
        return $this->photo;
    }

    /**
     * Set categorie
     *
     * @param \Osp\CategoryBundle\Entity\Category $categorie
     * @return Product
     */
    public function setCategorie($categorie)
    {
        $this->categorie = $categorie;
    
        return $this;
    }

    /**
     * Get categorie
     *
     * @return \Osp\CategoryBundle\Entity\Category 
     */
    public function getCategorie()
    {
        return $this->categorie;
    }

    /**
     * Set libelle
     *
     * @param string $libelle
     * @return Product
     */
    public function setLibelle($libelle)
    {
        $this->libelle = $libelle;
    
        return $this;
    }

    /**
     * Get libelle
     *
     * @return string 
     */
    public function getLibelle()
    {
        return $this->libelle;
    }

    /**
     * Set description
     *
     * @param string $description
     * @return Product
     */
    public function setDescription($description)
    {
        $this->description = $description;
    
        return $this;
    }

    /**
     * Get description
     *
     * @return string 
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set lien
     *
     * @param string $lien
     * @return Product
     */
    public function setLien($lien)
    {
        $this->lien = $lien;
    
        return $this;
    }

    /**
     * Get lien
     *
     * @return string 
     */
    public function getLien()
    {
        return $this->lien;
    }

    /**
     * Set poids
     *
     * @param double $poids
     * @return Product
     */
    public function setPoids($poids)
    {
        $this->poids = $poids;
    
        return $this;
    }

    /**
     * Get poids
     *
     * @return double 
     */
    public function getPoids()
    {
        return $this->poids;
    }

    /**
     * Set prix
     *
     * @param double $prix
     * @return Product
     */
    public function setPrix($prix)
    {
        $this->prix = $prix;
    
        return $this;
    }

    /**
     * Get prix
     *
     * @return double 
     */
    public function getPrix()
    {
        return $this->prix;
    }
    
}